package com.henu.ocr.controller;

import com.henu.ocr.annotation.IgnoreToken;
import com.henu.ocr.mapper.PermissionMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/test")
@IgnoreToken
public class testController {
    @Resource
    PermissionMapper permissionMapper;
    @GetMapping("{id}")
    public String test(@PathVariable List<Integer> id){
        return String.valueOf(permissionMapper.deleteBatchIds(id));
    }
}
